<?php

/**
 * 
 */
class Login extends CI_Controller {

    function __construct() {
        parent::__construct();
        $this->load->model('login_model');
    }

    public function index() {
        $this->load->view('login/loginmenufb');
    }

    public function loginfb() {
        if (!$this->login_model->doLogin()) {
            echo json_encode("Error");
        } else {
            $this->login_model->doLogin();
            echo json_encode("LoginOk");
        }
    }

    // public function logout()
    // {
    // 	$this->login_model->doLogout();
    // }

    public function loadMenu() {
        $this->load->view('login/loginmenu');
    }

}

?>